package org.com.star.event.service.event;

import org.springframework.context.ApplicationEvent;

/**
 * 通过继承来定义相关事件，可以自定义相关参数
 */
public class UserEvent extends ApplicationEvent {

    private String username;

    public UserEvent(Object source) {
        super(source);
    }

    public UserEvent(Object source, String username) {
        super(source);
        this.username = username;
    }

    public String getUsername() {
        return username;
    }
}
